<?php
# lemur cms by Alec Gorge
#
#     This is the index file, linking to everything else.
#
# updated: Jun. 23, 2009

if(filesize('config.php') < 200)
	header('location: install.php');
$pageGenStart = round(microtime(), 4);
if($_GET['frominstaller'] == true) {
	rename('install.php','install.'.time().'.php');
	header('location: index.php');
}
require_once('config.php');
require_once(BASE_URL.'includes/core.requirements.check.php');
require_once(BASE_URL.'includes/core.forms.template.php');
require_once(BASE_URL.'includes/core.standard.vars.php');
require_once(BASE_URL.'includes/core.cleaning.functions.php');
if(DB_USE == 'mysql')
	require_once(BASE_URL.'includes/db/mysql.core.class.php');
elseif(DB_USE == 'sqlite')
	require_once(BASE_URL.'includes/db/sqlite.core.class.php');
else
	die('no db configuration found');
require_once(BASE_URL.'includes/core.functions.class.php');
require_once(BASE_URL.'includes/core.upload.theme.class.php');
require_once(BASE_URL.'includes/core.theme.manger.class.php');
require_once(BASE_URL.'includes/core.init.class.php');
require_once(BASE_URL.'includes/core.plugins.class.php');
require_once(BASE_URL.'includes/core.load.php');

?>